home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 081 / oecc_106.arc / DEMO.OEC < prev    next >
Encoding:
INI File  |  1987-10-03  |  3.5 KB  |  125 lines

  1. [cls][gray]
  2.  
  3.                      Opus Embedded Command Compiler
  4.  
  5.                               Version 1.04
  6.  
  7.  
  8.  
  9.              [lightcyan on brown]                                            [gray]
  10.              [lightcyan on brown]  1. What is Opus Embedded Command Compiler [gray]
  11.              [lightcyan on brown]  2. How to use comments inside my code     [gray]
  12.              [lightcyan on brown]  3. How do I use labels                    [gray]
  13.              [lightcyan on brown]                                            [gray]
  14.  
  15.  
  16.            [lightgreen]Choose one of the options, or [yellow]Q[lightgreen] to quit: [yellow][menu]123Q[gray]
  17. [choice]1[goto][what's-this]
  18. [choice]2[goto][how-do-I-comment?]
  19. [choice]3[goto][can.I.use_labels?!]
  20. [choice]Q[goto][that's-it-4-now]
  21. [/what's-this
  22. ][cls][gray]
  23.  
  24.  
  25.         [lightmagenta]Opus Embedded Command Compiler [white]takes source code written
  26.         in OECL (Opus Embedded Command Language) and translates
  27.         it into Opus Embedded Commands (OEC) or oANSI codes.
  28.  
  29.  
  30.         [lightgreen]Example:
  31.         ~~~~~~~~
  32.  
  33.         [lightred]To have any following text displayed in yellow, you just
  34.         [lightred]type [[yellow] not worrying what the exact oANSI code is.
  35.         OECC will translate it to ^V^A^N (oANSI code for yellow).
  36.  
  37.  
  38.         [[yellow]
  39.  
  40.         [yellow][enter]
  41. [top][
  42. /how-do-I-comment?
  43. ][cls][gray]
  44.  
  45.  
  46.         Starting with version 1.04, OECC allows the use of comments
  47.         in the code. A comment is a token which starts with the
  48.         word COMMENT (in upper or lower case) followed by a space,
  49.         tab or carriage return. The comment token can be of any
  50.         length and is totally ignored by the compiler.
  51.  
  52.         [lightgreen]Example:
  53.         ~~~~~~~~
  54.  
  55.         [yellow][[ comment
  56.  
  57.         * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  58.  
  59.         This is a comment and will be ignored by the compiler.
  60.  
  61.         * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  62.  
  63.         ]
  64. [
  65.     COMMENT
  66.  
  67. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  68.  
  69.     Obviously, the previous "comment" was not really a comment as it was
  70.     preceded by "[[" to show up on your jelp screen.
  71.  
  72.     Just to give you an idea of how true comments work, I included this
  73.     one right here....
  74.  
  75. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  76.  
  77. ]
  78.         [lightcyan][enter]
  79. [top][
  80. /can.I.use_labels?!
  81. ][comment
  82.  
  83.  
  84.     Please note that just about any character can be used inside a
  85.     label, excluding obviously `/' except at the beginning. Also
  86.     blanks and tabs are excluded from inside the label name as they
  87.     will be interpreted as delimiters.
  88.  
  89.  
  90.  
  91. ][cls][gray]
  92.         [lightmagenta]Labels are a standard part of Opus Embedded Command Language.
  93.         However, previous versions of OECC could not compile them.
  94.         The ability to convert labels into OEC was added in version
  95.         1.04. It is one of the most powerful features of Opus Embedded
  96.         Commands. This demo uses labels.
  97.  
  98.         [white]Example:
  99.         ~~~~~~~~
  100.  
  101.         [yellow]Your quote for the day:
  102.  
  103.         [[/wisdom.of.ages][[quote]
  104.  
  105.         Do you want another quote [[[[y,n]? [[menu]YN
  106.  
  107.         [[choice]Y[[goto][[wisdom.of.ages]
  108.  
  109.  
  110.  
  111.  
  112.         [lightgreen][enter]
  113. [top
  114. ][/
  115. that's-it-4-now
  116. ][cls][gray]
  117.  
  118.         [lightmagenta]This demo was prepared by OECCDRAW.EXE, then edited
  119.         with a word processor to include the labels.
  120.  
  121.         As they say:
  122.  
  123.         [yellow][quote]
  124.  
  125.